﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace DwarfFortClone
{
    class TileType
    {
        TileLayer layer;
        Rectangle textureCoordinates;
        uint tileID;

        public TileType(TileLayer layer, Rectangle textureCoordinates, uint tileID)
        {
            this.layer = layer;
            this.textureCoordinates = textureCoordinates;
            this.tileID = tileID;
        }

        public void Draw(SpriteBatch spriteBatch, Vector2 worldLocation, Color tint)
        {
            spriteBatch.Draw(layer.tileTexture,worldLocation, textureCoordinates, tint);
        }
    }
}
